home *** CD-ROM | disk | FTP | other *** search
- 2 REM temperature conversion program
- 10 CLS :KEY OFF
- 20 PRINT TAB(20) "TEMPERATURE CONVERSION PROGRAM":PRINT
- 30 F=32
- 40 C=0
- 50 PRINT "celsius to fahrenheit (c) or fahrenheit to celsius (f)?"
- 60 INPUT T$
- 70 IF T$="c" THEN 140
- 80 PRINT "enter the fahrenheit temperature"
- 90 INPUT F
- 100 C=(F-32)*5/9
- 110 C=CINT(C)
- 120 PRINT "the celsius temperature is: ";C;"degrees"
- 130 GOTO 200
- 140 PRINT "enter the celsius temperature"
- 150 INPUT C
- 160 F=(C*9/5)+32
- 170 F=CINT(F)
- 180 PRINT "the fahrenheit temperature is:";F;"degrees"
- 190 GOTO 200
- 200 PRINT
- 210 PRINT "Again (y/n) ?":INPUT A$
- 211 IF A$="Y" OR A$="y" THEN GOTO 50
- mp